Full name:
org.openl.rules:openl-maven-plugin:5.19.1:generate
Description:
Attributes:
Name | Type | Since | Description |
---|---|---|---|
classpaths | String[] | - | Deprecated. Obsolete. No needs to generate rules.xml from Maven. |
createProjectDescriptor | boolean | - | Deprecated. Obsolete. No needs to generate rules.xml from Maven. Default value is: true. |
generateInterfaces | GenerateInterface[] | - | Deprecated. Obsolete. Replaced with the smart generator. Use interfaceClass
instead. |
generateUnitTests | Boolean | - | Deprecated. Obsolete. Use openl:test goal to run OpenL tests. Default value is: false. |
interfaceClass | String | - | A generated Java interface from an OpenL project. If it is empty
then generation will be skipped. |
isProvideRuntimeContext | boolean | - | Add IRulesRuntimeContext arguments to the generated interface. |
isProvideVariations | boolean | - | Add additional methods to the generated interface to support
variations. |
openlResourcesDirectory | String | - | Deprecated. Use sourceDirectory instead. |
outputDirectory | File | - | An output directory of generated Java beans and OpenL java
interface. Default value is: ${project.build.directory}/generated-sources/openl. |
overwriteProjectDescriptor | boolean | - | Deprecated. Obsolete. No needs to generate rules.xml from Maven. Default value is: true. |
overwriteUnitTests | Boolean | - | Deprecated. Obsolete. Use openl:test goal to run OpenL tests. Default value is: false. |
projectName | String | - | Deprecated. Obsolete. No needs to generate rules.xml from Maven. |
sourceDirectory | File | - | Folder that contains all OpenL-related resources (OpenL rules,
project descriptor etc.). For example:
"${project.basedir}/src/main/openl". Default value is: ${project.build.sourceDirectory}/../openl. |
superInterface | String | - | Comma-separated list of interfaces which are used for extending of
the generated interface. |
unitTestTemplatePath | String | - | Deprecated. Obsolete. Use openl:test goal to run OpenL tests. Default value is: org/openl/rules/maven/JUnitTestTemplate.vm. |
Object Properties
Name | Type | Required | Description |
---|---|---|---|
srcFile | String | false | *Reference to the Excel file for which an interface class must be generated. |
targetClass | String | false | *Full name of the interface class to be generated. Optional; if missed interface not generated. OpenL Tablets WebStudio recognizes modules in projects by interface classes and uses their names in the user interface. If there are multiple wrappers with identical names, only one of them is recognized as a module in OpenL Tablets WebStudio. |
isUsedRuleXmlForGenerate | boolean (true/false) | false | *Should system generate class and datatypes from rules.xml. If yes srcFile ignored; targetClass is required. |
displayName | String | false | *End user oriented title of the file that appears in OpenL Tablets WebStudio. Default value is Excel file name without extension. |
targetSrcDir | String | false | *Folder where the generated interface class must be placed. For example: "src/main/java". Default value is: "${project.build.sourceDirectory}" |
openlName | String | false | *OpenL configuration to be used. For OpenL Tablets, the following value must always be used: org.openl.xls. Default value is: "org.openl.xls" |
userHome | String | false | *Location of user-defined resources relative to the current OpenL Tablets project. Default value is: "." |
userClassPath | String | false | *Reference to the folder with additional compiled classes imported by the module when the interface is generated. Default value is: null. |
ignoreTestMethods | boolean | false | *If true, test methods will not be added to interface class. Used only in GenerateInterface. Default value is: true. |
generateUnitTests | boolean | false | *Overwrites base generateUnitTests value |
unitTestTemplatePath | String | false | *Overwrites base unitTestTemplatePath value |
overwriteUnitTests | boolean | false | *Overwrites base overwriteUnitTests value |
generateDataType | boolean | false | *Generate or not dataType for current task. |
Name | Description |
---|---|
openlInterfacePackage | Package of generated interface class |
openlInterfaceClass | Generated interface class name |
testMethodNames | Available test method names |
projectRoot | Root directory of OpenL project |
srcFile | Reference to the Excel file for which an interface class must be generated. |
StringUtils | Apache commons utility class |